package com.ssy.lingxi.member.merchant.model.vo.basic.request;

import com.ssy.lingxi.common.model.vo.PageVO;
import com.ssy.lingxi.member.merchant.handler.annotation.DateStringFormatAnnotation;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 平台后台 - 日志中心 - 外部历史记录查询
 * @author 万宁
 * @version 2.0.0
 * @date 2021-12-03
 */
public class MemberHistoryPageVO extends PageVO implements Serializable {
    private static final long serialVersionUID = 8748461876086288910L;

    /**
     * 操作类型，0-平台后台，1-会员中心
     */
    @NotNull(message = "操作类型不能为空")
    @Min(value = 0, message = "操作类型：0-平台后台，1-会员中心")
    private Integer type;

    /**
     * 会员Id
     */
    private Long memberId;

    /**
     * 起始日期，格式为yyyy-MM-dd
     */
    @DateStringFormatAnnotation(message = "起始日期格式不正确")
    private String startDate;

    /**
     * 结束日期，格式为yyyy-MM-dd
     */
    @DateStringFormatAnnotation(message = "结束日期格式不正确")
    private String endDate;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
